<template>
  <div
    class="error-fetch-tips"
  >
    <img
      class="banner"
      :src="banner"
      alt=""
    >
    <p>{{ text }}</p>
  </div>
</template>

<script>
export default {
  name: 'NoDataAvailable',

  props: {
    text: {
      type: String,
      default: () => '暂无数据',
    },
  },

  data () {
    return {
      banner: require('@/assets/images/home/not-data.png'),
    }
  },
}
</script>

<style lang="scss" scoped>
.error-fetch-tips {
  color: $gray;
  text-align: center;
  // line-height: 4em;
  margin-top: 50px;
  .banner {
    width: 64px;
  }
}
</style>
